# Contributors: Maarten van Gompel <proycon@anaproy.nl>
# Maintainer: Maarten van Gompel <proycon@anaproy.nl>
pkgname=libfolia
pkgver=2.10
pkgrel=2
pkgdesc="C++ library for FoLiA (Format for Linguistic Annotation)"
options="!check"
arch="all"
url="https://github.com/LanguageMachines/libfolia"
license="GPL-3.0-only"
makedepends="libtool libxml2-dev ticcutils-dev icu-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/LanguageMachines/libfolia/releases/download/v$pkgver/libfolia-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR=$pkgdir install
}

sha512sums="9d56dd04dac62d741e7d7fb9098329fe4062e95327d7167096374d3fc3c05d054431e64d7e3727d77db7f4c170236125dd4cc11c598e75c8e2d75d7d18a34ce7  libfolia-2.10.tar.gz"
